import Layout from "@/pages/Layout/index.vue"
export default [{
    path: '/',
    component: Layout,
    children: [
        {
            path: '/',
            name: 'body',
            meta: {
                title: "首页"
            },
            component: () => import('@/pages/Layout/contentarea/body')
        },
        {
            path:'/order',
            name:'order',
            meta:{
                title:"快捷下单"
            },
            component:() => import('@/pages/Layout/contentarea/body/placeOrder.vue')
        },
        {
            path: '/orderquery',
            name: 'orderquery',
            meta: {
                title: "订单查询"
            },
            component: () => import('@/pages/Layout/contentarea/body/home.vue')
        },
        {
            path: '/invitation',
            name: 'invitation',
            meta: {
                title: "邀约管理"
            },
            component: () => import('@/pages/Layout/contentarea/body/myHome.vue')
        },
        {
            path: '/reminder',
            name: 'reminder',
            meta: {
                title: "催单管理"
            },
            component: () => import('@/pages/Layout/contentarea/body/myIndex.vue')
        },
        {
            path: '/shopmsg',
            name: 'shopmsg',
            meta: {
                title: "店铺管理"
            },
            component: () => import('@/pages/Layout/contentarea/body/shopMsg.vue')
        },
        {
            path: '/notice',
            name: 'notice',
            meta: {
                title: "通知公告"
            },
            component: () => import('@/pages/Layout/contentarea/body/notice.vue'),
            // children:[
            //     {
            //         path:'allmsg',
            //         name:'allmsg',
            //         component:()=>import('@/pages/Layout/contentarea/body/noticeChild/allmsg.vue')
            //     },
            //     {
            //         path:'businessMsg',
            //         name:'businessMsg',
            //         component:()=>import('@/pages/Layout/contentarea/body/noticeChild/businessMsg.vue')
            //     },
            //     {
            //         path:'platformMsg',
            //         name:'platformMsg',
            //         component:()=>import('@/pages/Layout/contentarea/body/noticeChild/platformMsg.vue')
            //     },
            //     {
            //         path:'otherMsg',
            //         name:'otherMsg',
            //         component:()=>import('@/pages/Layout/contentarea/body/noticeChild/otherMsg.vue')
            //     }
            // ]
        },
    ]
},
// 登录的路由
{
    path:'/login',
    component:()=>import('@/pages/Login')
},
{
    path: '*',
    redirect: '/'
}
]